import * as types from './type';
import {fromJS} from "immutable";

export const InitUser = (user) => ({
    type: types.INIT_USER_INFO,
    value: fromJS(user)
})
export const clearBoth = () => ({
    type: types.USER_CLEAR_BOTH
})
export const SignUser = () => ({
    type: types.USER_SIGN_SAGA
})
export const toUpdateUserImage = (url) => ({
    type: types.UPDATE_USER_IMAGE,
    value: url
})
export const toRefreshToken = (value) => ({
    type: types.REFRESH_TOKEN,
    value
})
export const toRegainUserInfo = () => ({
    type: types.REGAIN_USER,
    value: "BABABSDKAJDHKLJASDHSAJKDHSAK"
})
